package com.personnel.client.fallback;

import com.carcenter.common.pojo.personnel.StoreManager;
import com.carcenter.common.pojo.personnel.UserDto;
import com.carcenter.common.result.Result;
import com.personnel.client.StaffApi;
import org.springframework.stereotype.Component;

import java.util.Collections;
import java.util.List;


@Component
public class StaffApiFallback implements StaffApi {

    @Override
    public Result getStoreIdsByStaffName(String staffName) {
        return Result.fail("服务调用,发生降级");
    }

    @Override
    public Result<List<StoreManager>> getStoreManagersByManagerIds(List<Integer> managerIds) {
        return Result.fail("服务调用,发生降级");
    }

    @Override
    public Result<List<UserDto>> getUserDtosByUserIds(List<Integer> userIds) {
        return Result.fail("服务调用,发生降级");
    }
}
